package com.cg.service;

import com.cg.dto.AddUserDTO;
import com.cg.dto.SearchUserDTO;
import com.cg.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cg.result.R;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 加
 * @since 2025-01-17
 */
public interface IUserService extends IService<User> {


    R<List<User>> getUserByCondition(SearchUserDTO searchUserDTO);

    R addUser(AddUserDTO addUserDTO);

    Map<String,List<User>> phoneList();

    Map<String,List<User>> accountList();

    R deleteUser(Long userId);
}
